package designs.models.builder;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Application {
	public static void main(String[] args) {
		Builder builder = new Concretebuilder1();
		Director director = new Director(builder);
		JPanel panel = director.constructProduct();
		JFrame frame1 = new JFrame();
		frame1.add(panel);
		frame1.setBounds(12, 12, 200, 120);
		frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame1.setVisible(true);
		
		builder = new Concretebuilder2();
		director = new Director(builder);
		panel = director.constructProduct();
		JFrame frame2 = new JFrame();
		frame2.add(panel);
		frame2.setBounds(212, 12, 200, 120);
		frame2.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame2.setVisible(true);
	}
}
